<?php

/**
 * Subclass for performing query and update operations on the 'product_category_product' table.
 *
 * 
 *
 * @package lib.model
 */ 
class ProductCategoryProductPeer extends BaseProductCategoryProductPeer
{
  public static function getCategoryIden($product_iden,$level_number){
  	$c = new Criteria();
  	$c->add(self::PRODUCT_IDEN,$product_iden);
  	$c->addJoin(self::CATEGORY_IDEN,ProductCategoryPeer::IDEN);
  	$c->add(ProductCategoryPeer::LEVEL_NUMBER,$level_number);
  	$category = ProductCategoryPeer::doSelectOne($c);
  	if($category)
  	  return $category->getIden();
  	else
  	  return;
  }
}
